#ifndef RENDER_H
#define RENDER_H

#include <model3d.h>
#include <vector3.h>
#include <surface.h>
#include <plane.h>

void
render( surface_t *surface,
	const uint16_t x0,
	const uint16_t y0,
	const model3d_t *model,
	const plane_t *planes,
	const unsigned int n_planes,
	const double rot_y,
	const double rot_x,
	const color_t *edge_color,
	const color_t *bg_color,
	const uint16_t vmin,
	const uint16_t vmax );

void
find_intensities( const model3d_t *model, uint16_t *vmin, uint16_t *vmax );


#endif /* RENDER_H */
